package com.mo.sys.web.pojo;


import lombok.Data;

@Data
public class LogJsonResult {

    private Integer state=1;
    private String message="ok";
    private Object data;

    public LogJsonResult() {
    }
    public LogJsonResult(Object data) {
        this.data=data;
    }
    public LogJsonResult(String message) {

        this.message = message;
    }

    public LogJsonResult(Throwable e) {//异常信息封装
        // this.state=0;
        //this.message = e.getMessage();
        this(0,e.getMessage());
    }



    public LogJsonResult(Integer state, String message) {
        this.message=message;
        this.state=state;
    }
    /*

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }


     */
}


